<%= "<tr id=\"payment_#{payment.id}\">" if row_wrap %>
  <td><%= payment.id %></td>
  <td><%= payment.due_on.to_s(:long) %></td>
  <td><%= "#{currency_format(payment.amount)}" %></td>
  <td><%= payment.received_on.blank? ? "<span class=\"quiet\">not yet!</span>" : payment.received_on.to_s(:long) %></td>
  <td class="actions">
    <%= link_to_remote "Edit", :update => "payment_form_row", :url => show_remote_form_admin_project_payment_url(project, payment), :method => :get, :html => { :class  => "task_action", :onclick => "$j('#payment_#{payment.id} td').addClass('highlight')" } %> | 
    <%= link_to_remote 'Delete', :url => admin_payment_url(payment.id), :method => :delete, :confirm => "Are you sure?", :html => {:class  => "task_action"} %>
  </td>
<%= "</tr>" if row_wrap %>